package com.dd.ent.car.ui.user.uservideo;

import android.content.Context;
import android.view.View;

import com.dd.ent.car.common.bean.choice.Choice;
import com.dd.ent.car.common.bean.video.Video;
import com.dd.ent.car.ui.adapter.ViewHolder;
import com.dd.ent.car.ui.adapter.base.BaseListAdapter;
import com.dd.ent.car.ui.home.templet.choice.ChoiceFeedVideoView;
import com.dd.ent.car.ui.home.templet.choice.ChoiceShortVideoView;
import com.dd.ent.car.ui.home.templet.graphic.GraphicItemView;

import java.util.Random;

/**
 * Created by huanghaibin
 * on 16-5-23.
 */
public class UserVideoAdapter extends BaseListAdapter<Video> {
    private String systemTime;

    public UserVideoAdapter(Callback callback) {
        super(callback);
    }

    @Override
    protected void convert(ViewHolder vh, Video item, int position) {
    }

    @Override
    protected void refreshData(ViewHolder vh, View view, Video item, int position) {
        if (view instanceof UserVideoView) {
            ((UserVideoView) view).refreshData(position, item);
        }
    }

    @Override
    protected int getLayoutId(int position, Video item) {
        return -1;
    }

    @Override
    protected View bindView(Context context, int position, Video item) {
        return new UserVideoView(context);
    }

    public void setSystemTime(String systemTime) {
        this.systemTime = systemTime;
    }


}
